<?php
namespace app\admin\controller;

use think\Db;
use think\Controller;
class Admin extends Controller
{

     public function Alist()
{

  $list = Db::name('admin')->field(['id', 'name','phone','role','rtime'])->order('id', 'aes')->select();

  $this->assign('list',$list);
    //dump($list);die;

    return $this->fetch('admin/adminList');
}


    public function index()
    {

        return $this->fetch('admin/adminAdd');

    }

    public function perm()
    {
        return $this->fetch('admin/adminPermission');
    }

    public function role()
    {

        return $this->fetch('admin/adminRole');
    }

    public function del($id)
    {




return 111111111;die;

    }


}